import axios from "axios"
const BASE_URL ='https://www.tuguan.net'
const service = axios.create({
    baseURL: BASE_URL,
    timeout: 60000
})
export const get = async (relativeUrl, params) => {
    const response = await service.get(relativeUrl, {
      params
    })
    return response.data
} 
export const post = async (relativeUrl, params) => {
    const response = await service.post(relativeUrl, params)
    return response.data
}
const BASE_URL1 =''
const service1 = axios.create({
    baseURL: BASE_URL1,
    timeout: 60000
})
export const get1 = async (relativeUrl, params) => {
    const response = await service1.get(relativeUrl, {
      params
    })
    return response.data
} 
export const post1 = async (relativeUrl, params) => {
    const response = await service1.post(relativeUrl, params)
    return response.data
}